/*
 * Copyright DimYLiK.
 */

package com.example.myapp.client.components;

import com.google.gwt.user.client.ui.Button;

public abstract class AntiBaldaButton extends Button {

    protected AntiBaldaButton(String text, String title) {
        updateButton(text, title);
    }

    protected AntiBaldaButton(String text, String title, String style) {
        this(text, title);

        setStyleName(style);
    }

    protected AntiBaldaButton(String style) {
        this("", "", style);
    }

    public void updateButton(String text, String title) {
        setText(text);
        setTitle(title);
    }
}
